package cn.cvs.dao.record;

import cn.cvs.pojo.StorageRecord;
import cn.cvs.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RecordMapper {
    /**
     * 上机一
     * @param record
     * @return
     */
    public List<StorageRecord> getRecordGoodsName(StorageRecord record);

    /**
     * 上机二
     * @param record
     * @return
     */
    public List<StorageRecord> getRecordSupName(StorageRecord record);

    /**
     * 上机三
     * @param record
     * @return
     */
    public List<StorageRecord> getTestSupplier(StorageRecord record);

    /**
     * 上机一
     * @return
     */
    public List<StorageRecord> selectRecord(StorageRecord record);

    /**
     *  入库数组查询
     * @param supplierIds
     * @return
     */
    public List<StorageRecord> getSupplierArray(Integer[] supplierIds);

    /**
     * 以List作为参数
     * @param supplierIds
     * @return
     */
    public List<StorageRecord> getSupplierList(List<Integer> supplierIds);

    /**
     * 以MAP模糊查询
     * @param recordMap
     * @return
     */
    public List<StorageRecord> getRecordMap(Map<String,Object> recordMap);

    /**
     * 分页查询入库表
     * @param pageBegin
     * @param pageSize
     * @return
     */
    public List<StorageRecord> selectPageList(@Param("pageBegin") Integer pageBegin,@Param("pageSize") Integer pageSize);
}
